"""
@name : 08.装饰类
@author : wenyao
@projectname: xsfh
"""
def outer(cls):
    def inner(*args, **kwargs):
        print(f"class name is : {cls.__name__}")
        return cls(*args, **kwargs)  #A(*args,**kwargs)
    return inner

@outer  #  A = outer(A)
class A:
    def __init__(self,name):
        self.name = name

print(type(A))
m = A("sc")
print(m.name)